package com.example.lizheng_life;

import android.os.Bundle;


import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;

public class MainActivity extends FlutterActivity {
    RecordScreenPlugin recordScreenPlugin;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public void configureFlutterEngine(FlutterEngine flutterEngine) {
        super.configureFlutterEngine(flutterEngine);
       recordScreenPlugin = new RecordScreenPlugin();
       recordScreenPlugin.registerWith(flutterEngine, this);
        // VLCViewPlugin.registerWith(flutterEngine,this);
    }
//
//    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
//    @Override
//    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//        super.onActivityResult(requestCode, resultCode, data);
//        if (requestCode == RecordScreenPlugin.RECORD_REQUEST_CODE && resultCode == Activity.RESULT_OK) {
//            recordScreenPlugin.recorderScreecn(data);
//        }
//    }


}
